<!DOCTYPE html>
<html lang="en"
      xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>展示商品类别信息</title>
    <link rel="stylesheet" href="/css/admin.css">
</head>
<body>
<table class="table_list">
    <tr class="title">
        <td>分类编号</td>
        <td>分类名称</td>
        <td>操作</td>
    </tr>
    <th:block th:each="category:${categoryList}">
        <tr>
            <td th:text="${category.categoryId}"></td>
            <td th:text="${category.categoryName}"></td>
            <th>
                <a th:href="@{/admin/category/update_show(categoryId=${category.categoryId})}">修改</a>
            </th>
        </tr>
    </th:block>
    <tr>
        <td colspan="3">
            <a href="/admin/category/add_show">新增分类</a>
        </td>
    </tr>
</table>
</body>
</html>